/*
 * #%L
 * java model
 * %%
 * Copyright (C) 2009 - 2011 Stefan Isele
 * %%
 * All Rights Reserved.
 * This program is dual-licensed under the GNU General Public license
 * or a commercial license.
 * You may select to use one or the other of these licenses.
 * To obtain a commercial license please contact Stefan Isele at www.stefan-isele.de
 * Any modifications to this file must keep this entire header intact.
 * Redistribution, except as permitted by the selected license, is prohibited.
 * #L%
 */
package com.prefabware.jmodel.code;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import com.prefabware.jmodel.JField;
import com.prefabware.jmodel.JType;
import com.prefabware.jmodel.code.equals.Equals;

public class JBlockEquals extends JBlock {
private JType type;
private List<Equals>equals;

public JBlockEquals(JType type, Collection<JField> fields) {
	super();
	this.type=type;
	equals=new ArrayList<Equals>();
	for (JField jField : fields) {
		equals.add(Equals.create(jField));
	}
}

public List<Equals> getEquals() {
	return equals;
}

public JType getType() {
	return type;
}
}
